package com.zzb.framework.user.entity;

import com.baomidou.mybatisplus.annotations.KeySequence;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.zzb.framework.common.BaseEntity;

/**
* 登录历史 实体类
*/
@TableName("t_sys_login_history")
public class LoginHistory extends BaseEntity<String> {
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @TableField(value = "login_name")
    private String loginName; //用户名
    @TableField(value = "login_ip")
    private String loginIp; //登录ip

    /*----------------------get set 方法----------------------*/
    public String getId() {return id;}
    public void setId(String id) {this.id = id;}
    public String getLoginName() {return loginName;}
    public void setLoginName(String loginName){this.loginName = loginName == null ? null : loginName.trim();}
    public String getLoginIp() {return loginIp;}
    public void setLoginIp(String loginIp){this.loginIp = loginIp == null ? null : loginIp.trim();}
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "LoginHistory{" +
        "id='" + getId() + '\'' + ',' + 
        "loginName='" + getLoginName() + '\'' + ',' + 
        "loginIp='" + getLoginIp() + '\'' + ',' + 
        "createTime='" + getCreateTime() + '\'' + ',' + 
        "creator='" + getCreator() + '\'' + ',' + 
        "updateTime='" + getUpdateTime() + '\'' + ',' + 
        "updater='" + getUpdater() + '\'' + ',' + 
        "activate='" + getActivate() + '\'' + 
        '}';
    }
}
